/*
 * @Author: jacky jackyliusir@gmail.com
 * @Date: 2021-04-09 22:24:41
 * @LastEditors: jacky jackyliusir@gmail.com
 * @LastEditTime: 2024-07-06 11:58:30
 * @FilePath: /demo/src/main.c
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
/*************************************
 * 
 *        89c52 sdcc blink demo
 * 
 * CPU: 89C52
 * FREQ: 12MHz
 * PIN: P00
 * 
 * ***********************************
*/

// #include <reg52.h>
#include <8051.h>
#include <stdio.h>

void delay_100ms(void); //@12MHz

void main(void)
{
    while (1)
    {
        P0_0 = !P0_0;
        delay_100ms();

    }
}


void delay_100ms(void)
{
    unsigned char i, j;

    i = 195;
    j = 138;

    do
    {
        while (--j)
            ;
    } while (--i);
}